﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Presentation.Web.Admin.Areas.Controllers
{
    public class HomeController : Controller
    {
        public RedirectResult Index()
        {
            var current = Session[Infrastructure.Crosscutting.Comm.Service.ConstService.SessionNameCurrentUser]
                as Domain.Entity.User;
            if (current != null)
            {
                return Redirect("/open/");
            }
            else
            {
                return Redirect("/login/");
            }
        }
    }
}
